#ifndef UTIL_H
#define UTIL_H

typedef float f32;
typedef double f64;
typedef char i8;
typedef short i16;
typedef int i32;


// #define byte unsigned char
typedef unsigned char byte;
typedef byte u8;
typedef unsigned short u16;
typedef unsigned int u32;



#ifdef __x86_64__

typedef long long i64;
typedef unsigned long long u64;
typedef u64 ptr;

#else

typedef u32 ptr;

#endif

//[min,max);
i32 nextRandom(i32 min,i32 max);

//[0,max)
i32 nextRandom(i32 max);

#endif // UTIL_H
